package entity

import (
	"github.com/lib/pq"
)

type TransferRecode struct {
	Id int64 `gorm:"column:id;type:BIGINT;primary_key" json:"id"`

	UserId int64 `gorm:"column:user_id;type:BIGINT" json:"user_id"`

	BindPhones pq.StringArray `gorm:"column:bind_phones;type:VARCHAR[]" json:"bind_phones"`

	EbikeId int64 `gorm:"column:ebike_id;type:BIGINT" json:"ebike_id"`

	Status int `gorm:"column:status;type:TINYINT" json:"status"`

	CreatedAt int64 `gorm:"column:created_at;type:BIGINT" json:"created_at"`

	UpdatedAt int64 `gorm:"column:updated_at;type:BIGINT" json:"updated_at"`
}

func (a *TransferRecode) TableName() string {
	return "transfer_recodes"
}
